﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ArticleManagementSystem._Default" %>

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
    <style>
        input {
            margin-left: 3px;
            width:140px;
        }

        th {
            padding-left: 10px;
            text-align: center;
            height: 40px;
        }

        td {
            text-align: center;
        }

        #View {
            width: 850px;
        }

            #View ul li {
                float: left;
                list-style: none;
            }

        #BT {
            margin-top: 2px;
            list-style: none;
        }
    </style>
    <div id="View">
        <ul>
            <li>
                <asp:GridView ID="GV1" runat="server" AutoGenerateColumns="False" Height="307px" Width="735px" BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" CellPadding="2" ForeColor="Black" GridLines="None" OnRowDeleting="GV1_RowDeleting" OnRowEditing="GV1_RowEditing" OnRowUpdating="GV1_RowUpdating" OnRowCancelingEdit="GV1_RowCancelingEdit">
                    <AlternatingRowStyle BackColor="PaleGoldenrod" />
                    <Columns>
                        <asp:BoundField HeaderText="Id" DataField="Id" ReadOnly="True" ShowHeader="False" />
                        <asp:BoundField HeaderText="标题" DataField="Title" />
                        <asp:BoundField HeaderText="内容" DataField="Content" />
                        <asp:BoundField HeaderText="作者" DataField="Author" />
                        <asp:BoundField HeaderText="备注" DataField="Remarks" />
                        <asp:CommandField HeaderText="高端操作" ShowDeleteButton="true" ShowEditButton="true" />
                    </Columns>
                    <FooterStyle BackColor="Tan" />
                    <HeaderStyle BackColor="Tan" Font-Bold="True" />
                    <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
                    <SortedAscendingCellStyle BackColor="#FAFAE7" />
                    <SortedAscendingHeaderStyle BackColor="#DAC09E" />
                    <SortedDescendingCellStyle BackColor="#E1DB9C" />
                    <SortedDescendingHeaderStyle BackColor="#C2A47B" />
                </asp:GridView>
            </li>
            <li id="BT">
                <asp:Button ID="Button1" runat="server" Text="添加" BackColor="#3399FF" OnClick="Button1_Click" /></li>
        </ul>
    </div>
</asp:Content>
